<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.10.1.js"></script>
<script>

    $(document).ready(function(){
        $("#random").on("click", function(event){
            $(event.target).attr("src", $(event.target).attr("src") + "?" + new Date().getTime())
            
        })
    })
</script>
</head>
<body>
<h1 style="color:red">${msg}</h1>
<form action="login.action" method="post">
    <table>
        <tr>
            <td>uname</td>
            <td><input name="uname" value="${param.uname}" /></td>
        </tr>
        <tr>
            <td>password</td>
            <td><input name="password" /></td>
        </tr>
        <tr>
            <td><input name="random" autocomplete="off" /></td>
            <td><img alt="" src="user/random.action" id="random"></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" value="登录" />
                <input type="reset" value="重置" />
            </td>
        </tr>
    </table>
</form>
</body>
</html>